package com.smedi.ismedi.personnel.core.application.service;

import com.smedi.ismedi.personnel.core.domain.aggregatemodel.ProfileImage;
import org.springframework.web.multipart.MultipartFile;
import java.util.Map;

/**
 * @Author: xulinjun
 * @Date: 2021-6-9 11:46
 */
public interface ProfileImageApplicationService {
    /**
     * 上传员工照片，并返回uuid
     * @param file
     * @return
     */
    String uploadProfileImage(MultipartFile file);

    void uploadProfileImageAndSave(MultipartFile file, Long personId);

    /**
     * 删除过期员工照片
     * @param group
     * @param path
     */
    void dropTempProfileImage(String group, String path);

    /**
     * 从iMIS库获取人员照片
     * @param personMap
     */
    void copyProfileImageByRemoteApi(Map<Long, Long> personMap);

    ProfileImage downloadProfileImage(String imageUUID);
}
